void leesknop()  {

  int analogValue = analogRead(button);

  if (analogValue <= 10) {
      // no button pressed
  }

  else if (analogValue < 300) {
    Serial.println("Button 4 Pressed");
    if (modus == 1)
    {
      modus = 2;
      Serial.println("full step two phase");
    }
    else if (modus == 2)
    {
      modus = 1;
      Serial.println("full step one phase");
    }
    else if (modus == 3)
    {
      Serial.println("Not possible with half-step");
    }
    else
    {
      //do nothing
    }
    delay(200);
  }

  else if (analogValue < 400) {
    Serial.println("Button 3 Pressed");
    if (linksom == true)
    {
      linksom = false;
      Serial.println("Rechtsom draaien");
    }
    else
    {
      linksom = true;
      Serial.println("Linksom draaien");
    }
    delay(1000);
  }

  else if (analogValue < 650) {
    Serial.println("Button 2 Pressed");
    if (modus == 1 || modus == 2)
    {
      modus = 3;
      Serial.println("half-step");
    }
    else
    {
      if (modus == 3)
      {
        modus = 1;
        Serial.println("full step one phase");
      }
      else
      {
        //do nothing
      }
    }
    delay(200);
  }

  else if (analogValue < 1024) {
    Serial.println("Button 1 Pressed");
    if (modus == 0)
    {
      modus = 1;
      Serial.println("full step one phase");
    }
    else
    {
      modus = 0;
    }
    delay(300);
    
  }

  else 
  {
    //hier niks doen
  }
}










